import Vue from "vue";
import VueRouter from "vue-router";


import HopuTrain from "../views/HopuTrain/HopuTrain";
// import VerificationCode from "../components/VerificationCode/VerificationCode.vue"
Vue.use(VueRouter);

const routes = [{
        //创建路由规则，参数：path为路径，参数component 为映射关系的组件（当前路径下要显示的页面）
        path: "/",
        redirect: "/hoputrain"
    },
  
   
    {
        //创建路由规则，参数：path为路径，参数component 为映射关系的组件（当前路径下要显示的页面）
        path: "/hoputrain",
        name: "hoputrain",
        component: HopuTrain,
    },
   
];
//redirect 重定向
//作用：用户匹配path后，强制切换到目标path上
const router = new VueRouter({
    routes,
});

export default router;